<template>
  <div>
    <el-button
      :disabled="rolesCode !== 'CUSTOM_ADMIN' && rolesCode !== 'PRODUCT'"
      type="primary"
      size="14"
      class="button-container"
      @click="handleCreateApp">创建App</el-button>
    <createAppDialog ref="createApp"></createAppDialog>
    <tableList></tableList>
  </div>
</template>
<script>
import { mapGetters } from 'vuex'
import createAppDialog from './component/createApp.vue'
import tableList from './component/tableList.vue'
export default {
  name: 'PublicApp',
  components: { createAppDialog, tableList },
  data() {
    return {

    }
  },
  computed: {
    ...mapGetters(['rolesCode'])
  },
  created() {

  },
  methods: {
    handleCreateApp() {
      this.$refs.createApp.dialogVisible = true
    }
  }
}
</script>
<style lang="scss" scoped>

</style>
